<?php
require_once '../sub/init.php';
require_once 'chkUadm.php';
if(!in_array('u_jb_list',$QXARR))exit(noauth());

require_once ZEAI.'cache/config_up.php';
require_once ZEAI.'sub/zeai_up_func.php';
require_once ZEAI.'sub/ZeaiUP.php';

require_once ZEAI.'cache/udata.php';
$extifshow   = json_decode($_UDATA['extifshow'],true);
$udata_F_arr = udata_arr('basic_ext');
require_once ZEAI.'m/div_left_so.php';
function photo_tmp_m($V){
	if(strstr($V,'/tmp/') && !empty($V)){
		$_s=@UP_modFn('adm','tmp_p',$V,'m');
		@UP_modFn('adm','tmp_p',smb($V,'m'),'m');
		@UP_modFn('adm','tmp_p',smb($V,'b'),'m');
		@UP_modFn('adm','tmp_p',smb($V,'blur'),'m');
		return $_s;
	}else{
		return $V;
	}
}
switch ($submitok) {
	case"submitCut_success":
		if(!ifint($uid))json_exit(array('flag'=>0,'msg'=>'用户不存在'));
		//新头像处理
		if(!empty($_cut)){
			$_s = cut_save('adm',$_cut,'m');
			//$db->query("UPDATE ".__TBL_USER__." SET photo_s='".$_s."',photo_f=1 WHERE id=".$uid);
			//$db->query("UPDATE ".__TBL_SHALOU__." SET photo_f=1 WHERE uid=".$uid);
			//set_data_ed_bfb($uid);
			$SHALOU_ARR=shalou_data($uid);
			$SHALOU_ARR['photo_s']=$_s;
			$jsonstr = encode_json($SHALOU_ARR);
			$db->query("UPDATE ".__TBL_SHALOU__." SET jsonstr='$jsonstr',addtime=".ADDTIME." WHERE uid=".$uid);
			json_exit(array('flag'=>1,'msg'=>'裁切成功'));
		}else{
			json_exit(array('flag'=>0,'msg'=>'上传更新失败'));
		}
	break;
	case"pdel_shalou":
		if(!ifint($uid))json_exit(array('flag'=>0,'msg'=>'用户不存在'));
		$row = $db->ROW(__TBL_USER__,"photo_s","id=".$uid,"name");
		if (!$row)json_exit(array('flag'=>0,'msg'=>'用户不存在'));
		$data_photo_s= $row['photo_s'];
		$SHALOU_ARR=shalou_data($uid);
		$shalou_photo_s = $SHALOU_ARR['photo_s'];
		$SHALOU_ARR['photo_s'] = '';
		$jsonstr = encode_json($SHALOU_ARR);
		$db->query("UPDATE ".__TBL_SHALOU__." SET jsonstr='$jsonstr',addtime=".ADDTIME." WHERE uid=".$uid);
		if($shalou_photo_s!=$data_photo_s){
			UP_modFn('adm','del',$shalou_photo_s.'|'.smb($shalou_photo_s,'m').'|'.smb($shalou_photo_s,'b').'|'.smb($shalou_photo_s,'blur'));
		}
		json_exit(array('flag'=>1,'msg'=>'操作成功'));
	break;
	case"dataflag1":
		if(!ifint($uid))json_exit(array('flag'=>0,'msg'=>'请选择您要审核的信息'));
		$row = $db->ROW(__TBL_SHALOU__,"*","uid=".$uid);
		if (!$row)alert_adm("沙漏数据丢失","back");
		$row_shalou=json_decode($row['jsonstr'],true);
		unset($row_shalou['mob']);
		//
		$row = $db->ROW(__TBL_USER__,"nickname,openid,subscribe,photo_s,magapp_uid","id=".$uid,"num");
		$data_photo_s=$row[3];
		if ($row){
			//沙漏资料同步
			$SQL='';
			if (count($row_shalou) >= 1 && is_array($row_shalou)){
				foreach ($row_shalou as $k=>$V) {
					if($V=='undefined')$V=0;
					if($k=='parent' || $k=='marrytime')$V=intval($V);
					if(ifInTableF($k)){
						if($FT[$k]['s']==2)$V=intval($V);
						if($k=='photo_s' && $photo_sflag1==1){
							$V=photo_tmp_m($V);$row_shalou[$k]=$V;
							//删老
							if(empty($V)){
								UP_modFn('adm','del',$data_photo_s.'|'.smb($data_photo_s,'m').'|'.smb($data_photo_s,'b').'|'.smb($data_photo_s,'blur'));
							}elseif(!empty($data_photo_s) && $data_photo_s!=$V && !empty($V)){
								UP_modFn('adm','del',$data_photo_s.'|'.smb($data_photo_s,'m').'|'.smb($data_photo_s,'b').'|'.smb($data_photo_s,'blur'));
							}
							$SQL.=",$k='$V'";
						}
						if($k=='birthday' && !ifdate($V)){$V='0000-00-00';$row_shalou[$k]=$V;}
						if($k=='photo_s' && $photo_sflag1==1 || $k!='photo_s')$SQL.=",$k='$V'";
						
					}else{
						unset($row_shalou[$k]);
						$new_row_shalou=encode_json($row_shalou);
						$db->query("UPDATE ".__TBL_SHALOU__." SET jsonstr='$new_row_shalou' WHERE uid=".$uid);
					}
				}
			}
			$new_row_shalou=encode_json($row_shalou);
			$db->query("UPDATE ".__TBL_SHALOU__." SET jsonstr='$new_row_shalou',photo_f=1 WHERE uid=".$uid);
			//
			$db->query("UPDATE ".__TBL_USER__." SET dataflag=1".$SQL." WHERE id=".$uid);
			$db->query("UPDATE ".__TBL_USER__." SET photo_f=1 WHERE photo_s<>'' AND id=".$uid);
			set_data_ed_bfb($uid);
			$data_nickname = dataIO($row[0],'out');$data_openid = $row[1];$data_subscribe = $row[2];$magapp_uid = $row[4];
			AddLog('【(手机端)资料审核】->【'.$data_nickname.'（uid:'.$id.'）】->通过');
			//站内消息
			$C = $data_nickname.'恭喜你！个人资料已通过审核';
			$db->SendTip($uid,"恭喜你！个人资料已通过审核",dataIO($C,'in'),'sys');
			//微信模版
			$keyword1 = urlencode('已通过');
			$keyword2 = urlencode('个人资料符合规范');
			$url      = urlencode(mHref('my'));
			@wx_mb_sent('mbbh=ZEAI_DATA_CHECK&magapp_uid='.$magapp_uid.'&openid='.$data_openid.'&keyword1='.$keyword1.'&keyword2='.$keyword2.'&first='.$first.'&remark='.$remark.'&url='.$url);
		}
		json_exit(array('flag'=>1,'msg'=>'【uid：'.$uid.'】审核成功'));
	break;
	case"dataflag2":
		if(!ifint($uid))json_exit(array('flag'=>0,'msg'=>'请选择您要审核的信息'));
		$row = $db->ROW(__TBL_USER__,"nickname,openid,subscribe,magapp_uid","id=".$uid,"num");
		if ($row){
			$db->query("UPDATE ".__TBL_USER__." SET dataflag=2 WHERE dataflag<>2 AND id=".$uid);
			$db->query("UPDATE ".__TBL_SHALOU__." SET photo_f=1 WHERE uid=".$uid);
			$data_nickname = dataIO($row[0],'out');$data_openid = $row[1];$data_subscribe = $row[2];$magapp_uid = $row[3];
			AddLog('【(手机端)资料审核】->【'.$data_nickname.'（uid:'.$uid.'）】->驳回');
			$title_def     = "对不起！个人基本资料审核失败！";
			$content_def   = "个人资料审核失败！请检查以下信息：<br>";
			$content_def  .= "　　1.基本资料不完善或不真实<br>";
			$content_def  .= "　　2.个人头像不是本人或未上传<br>";
			$content_def  .= "　　<a href=".Href('my_info')." class=aQING target=_blank>修改基本资料</a>　<a href=".Href('my_info')." class=aQING target=_blank>上传头像</a>";
			//站内消息
			$C = $content_def;
			$db->SendTip($uid,$title_def,dataIO($C,'in'),'sys');
			//微信模版
			//if (!empty($data_openid) && $data_subscribe==1){
				$keyword1 = urlencode('未通过');
				$keyword2 = urlencode('请重点检查【1.基本资料不完善或不真实 2.个人头像不是本人或未上传】');
				$url      = urlencode(mHref('my_info'));
				@wx_mb_sent('mbbh=ZEAI_DATA_CHECK&magapp_uid='.$magapp_uid.'&openid='.$data_openid.'&keyword1='.$keyword1.'&keyword2='.$keyword2.'&first='.$first.'&remark='.$remark.'&url='.$url);
			//}
		}
		json_exit(array('flag'=>1,'msg'=>'驳回成功'));
	break;
}
$_ZEAI['pagesize']= 100;
$fields    = "U.*,S.jsonstr,S.addtime,S.bz";
$ZEAI_SQL  = " U.id=S.uid ";// AND myinfobfb>50
$ORDER     = " ";
$nodatatips="<div class='nodatatips'><i class='ico'>&#xe608;</i>暂时木有符合条件的会员</div>";
$sorthref = SELF."?dataflag=$dataflag&p=$p&sort=";
if ($dataflag==2){
	$ZEAI_SQL .= " AND U.dataflag=2";
}else{
	$ZEAI_SQL .= " AND (U.dataflag=0 OR S.photo_f=0) ";
}
switch ($sort) {
	case 'myinfobfb0':$ORDER = " ORDER BY U.myinfobfb,U.id DESC ";break;
	case 'myinfobfb1':$ORDER = " ORDER BY U.myinfobfb DESC,U.id DESC ";break;
	default:$ORDER = " ORDER BY U.endtime DESC ";break;
}
switch ($t) {
	case 'ext':
		$keyword = trimhtml(dataIO($keyword,'out'));
		if (!empty($keyword)){
			if (ifmob($keyword)){
				$ZEAI_SQL .= " AND (U.mob='$keyword' OR U.mob2='$keyword') ";
			}elseif(ifint($keyword)){
				$ZEAI_SQL .= " AND U.id='$keyword' ";
			}else{
				$ZEAI_SQL .= " AND U.nickname LIKE '%".$keyword."%' ";
			}
		}else{
			if ($dataflag==2){
				$SQL = " AND U.dataflag=2";
			}else{
				$SQL = " AND (U.dataflag=0 OR S.photo_f=0) ";
			}
			$par = "";
		}
	break;
}
/**CRM审核，匹配地区+门店**/
if(!in_array('crm',$QXARR) && $session_kind=='crm'){
	$SQLCRM .= " AND U.kind<>4 AND U.admid>0 ";
	$SQLCRM .= getAgentSQL('U');
}else{
	$SQLCRM = "";
}
/**CRM审核 结束**/

$ZEAI_SELECT = "SELECT U.*,S.jsonstr,S.addtime,S.bz FROM ".__TBL_USER__." U,".__TBL_SHALOU__." S WHERE  ".$ZEAI_SQL.$SQLCRM.$ORDER;
//
$rtt = $db->query("SELECT COUNT(*) FROM ".__TBL_USER__." U,".__TBL_SHALOU__." S WHERE ".$ZEAI_SQL);
$roww = $db->fetch_array($rtt);
$ZEAI_total = $roww[0];
$ZEAI_totalP=ceil($ZEAI_total/$_ZEAI['pagesize']);
//
$cs = "t=".$t."&dataflag=".$dataflag."&keyword=".$keyword.$par;
if($submitok=='ZEAI_list'){exit(Zeai_ajax_list_fn($ZEAI_totalP,$p));}

$nav='m_u_jb_list';
$FT=json_decode(FT,true);?>
<!doctype html><html><head><meta charset="utf-8">
<title><?php echo $_ADM['admSiteName']; ?></title>
<?php echo HEADMETA; ?>
<script src="<?php echo RES;?>www_zeai_cn.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<script src="<?php echo RES;?>m/js/m.js?<?php echo $_ZEAI['cache_str'];?>"></script>
<link href="<?php echo RES;?>m/css/m.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css" />
<?php require_once 'm_style.php';?>
<link href="css/m_adm.css?<?php echo $_ZEAI['cache_str'];?>" rel="stylesheet" type="text/css" />
<script>
var upurl='<?php echo SELF;?>',upMaxMB = <?php echo $_UP['upMaxMB']; ?>,browser='<?php echo browser();?>',up2='<?php echo $_ZEAI['up2'];?>/',Sbindbox = 'ZEAI_CN__FORM',maxnum=1;
window.onload=function(){
	user_search.onclick=function(){
		ZeaiM.div_left({obj:user_so,w:28});
	}
	processHash();
}
</script>
<style>
.top_mini4{background-color:<?php echo $_ADM['color'];?>}
a.so{color:#fff}

.ulist{margin:70px auto}
.ulist li{width:95%;margin:0 auto 15px auto;border-radius:8px;background-color:#fff;box-shadow:0 0 24px rgb(0 0 0 / 8%);}
.ulist li .uidbox{padding:0 10px;margin:0 auto;line-height:40px;color:#999;border-bottom:#f5f5f5 1px solid;text-align:left}
.ulist li .uidbox .uid{color:#666}
.ulist li .uidbox .ut{float:right;font-size:13px}
.ulist li .uidbox .RZBOX i{vertical-align:middle;font-size:14px;border-radius:3px;margin:0 2px;-webkit-background-clip:text;-webkit-text-fill-color:transparent}

.ulist li .uinfo{padding:0 15px;text-align:left;position:relative;min-height:112px}
.ulist li .uinfo img.photo_s,.ulist li .uinfo img.photo_s_new{border-radius:50%;width:50px;height:50px;object-fit:cover;-webkit-object-fit:cover;position:absolute;left:15px;top:28px}
.ulist li .uinfo .myinfobfb,.ulist li .uinfo .myinfobfb_new{position:absolute;left:20px;top:66px;text-align:center;font-size:12px;width:40px;line-height:16px;border-radius:15px;background-color:#fff;border:#eee 1px solid;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}
.ulist li .uinfo img.photo_s_new{width:72px;height:72px;left:125px;top:15px}
.ulist li .uinfo .myinfobfb_new{width:60px;line-height:20px;left:131px;top:77px}
.myinfobfb0{color:#999}
.myinfobfb1{color:#f70}
.myinfobfb2{color:#090}
.ulist li .uinfo .jt{position:absolute;left:80px;top:41px;text-align:center;font-size:18px;width:30px;color:#bbb}

.ulist li .uinfo a.pdel,.ulist li .uinfo a.pcut{position:absolute;left:190px;height:26px;line-height:26px;text-align:center;border-radius:20px;background-color:<?php echo $_ADM['color'];?>;color:#fff;padding:0 8px;font-size:12px;border:#fff 1px solid}
.ulist li .uinfo a.pdel{top:20px;background-color:#999}
.ulist li .uinfo a.pcut{top:53px}

.ulist li .uinfo .btn{position:absolute;right:12px}
.ulist li .uinfo .mod{top:5px;line-height:2.8rem;height:2.8rem;}
.ulist li .uinfo .yes{top:40px;background-color:<?php echo $_ADM['color'];?>}
.ulist li .uinfo .no{top:77px;background-color:#999}

.ulist li .datali{padding:10px;line-height:15px;border-top:#f5f5f5 1px solid;text-align:left;font-size:12px}
.ulist li .datali span{display:inline-block;padding:5px;margin:5px 4px;border-radius:3px;box-shadow:0 0 4px rgb(0 0 0 / 9%);max-width:94%;word-wrap:break-word;}
.ulist li .datali span.weixin_pic{text-align:center}
.ulist li .datali span.weixin_pic img{width:30px;height:30px;object-fit:cover;-webkit-object-fit:cover}
.ulist li .mate {border:0;margin-top:0;padding-top:0}
.ulist li .mate span{color:#5EB87B;border-color:#A7CAB2}
</style>
</head>
<body>
<?php 
$mini_title  ='资料审核';
$mini_class='top_mini4 bgcolor';	
$mini_title .=($dataflag==1 || empty($dataflag))?' <font>(未审'.$ZEAI_total.')</font>':' <font>(驳回'.$ZEAI_total.')</font>';
require_once ZEAI.'m/top_mini.php';?>
<a class="so" id="user_search"><i class="ico">&#xe66c;</i><span>筛选</span></a>
<!--div_left_so-->
<div id="rangebox"></div>
<div class="div_left_so" id="user_so">
	<form action="m_u_jb_list.php" method="get" name="www.yzlove.com" id="ZEAI_CN_FORM_ext">
    	<div class="form_uid">
        <input name="keyword" type="text" class="input" id="keyword" maxlength="20" value="<?php echo $keyword;?>" placeholder="按用户UID/昵称/手机" autocomplete="off">
        <button type="submit" class="ico">&#xe6c4;</button>
		</div>
        <?php div_left_so_out(array('tbody'=>'状态','t'=>'dataflag','tv'=>intval($dataflag),'subkind'=>2,'bx'=>1,'newarr'=>json_decode('[{"i":"0","v":"未审核"},{"i":"2","v":"被驳回"}]'),'ulcls'=>' col2'));?>
        <script>div_left_so_init('user_so')</script>
        <div class="savebox"><button type="button" class="btn size3 reset" onClick="div_left_so_reset('user_so')">重置</button><button type="submit" class="btn size3 zeaibg ico">&#xe6c4; 确定</button></div>
        <input type="hidden" name="t" value="ext">
    </form>
</div>
<!--div_left_so end-->
<div class="ulist" id="ZEAI_list"><?php if($ZEAI_totalP>0){echo Zeai_ajax_list_fn($ZEAI_totalP,$p);}else{echo $nodatatips;}?></div>
<script>var scs='<?php echo trimhtml($cs); ?>';</script>
<?php if ($ZEAI_total > $_ZEAI['pagesize']){?>
<script>
var ZEAI_totalP = parseInt(<?php echo $ZEAI_totalP; ?>);
var postjson = {submitok:'ZEAI_list',ZEAI_totalP:ZEAI_totalP};
if(!zeai.empty(scs))Object.assign(postjson,tojson(scs.split('&')));
zeaiOnscroll_json={url:'m_u'+zeai.extname,data:postjson};
</script>
<script src="<?php echo RES;?>m/js/zeai_loading_data.js?<?php echo $_ZEAI['cache_str'];?>"></script>

<?php }?>

<?php
function rows_ulist($rows,$p) {
	global $db,$_ZEAI,$_INDEX,$zeai_cn,$t,$FT;
	$id = $rows['id'];$uid = $id;
	$sex       = $rows['sex'];
	$grade     = $rows['grade'];
	$myinfobfb = $rows['myinfobfb'];
	$photo_s   = $rows['photo_s'];
	$RZ        = $rows['RZ'];
	$subscribe = $rows['subscribe'];
	$flag      = $rows['flag'];$ut=flagtitle($flag);
	$photo_s_url = (!empty($photo_s))?UP.smb($photo_s,'s'):RES.'photo_s'.$sex.'.png';
	$nickname = trimhtml(dataIO($rows['nickname'],'out'));
	//
	$row_shalou=json_decode($rows['jsonstr'],true);
	//同步沙漏
	if (!$row_shalou || count($row_shalou)<1 || empty($rows['jsonstr'])){
		$row_shalou=shalou_init($uid);
		set_data_ed_bfb($uid);
	}
	$sex_new     = $row_shalou['sex'];
	$photo_s_new = $row_shalou['photo_s'];
	$myinfobfb_new = get_shalou_ed_bfb($row_shalou);
	$photo_s_url_new = (!empty($photo_s_new))?UP.smb($photo_s_new,'s'):RES.'photo_s'.$sex_new.'.png';
	//
	$rz_str = (!empty($RZ))?RZ_html($RZ,'s','color'):'';
	if($myinfobfb >80){$myinfobfb_cls = ' myinfobfb2 ';}elseif($myinfobfb >20){$myinfobfb_cls = ' myinfobfb1';}else{$myinfobfb_cls = ' myinfobfb0';}
	if($myinfobfb_new >80){$myinfobfb_new_cls = ' myinfobfb2 ';}elseif($myinfobfb_new >20){$myinfobfb_new_cls = ' myinfobfb1';}else{$myinfobfb_new_cls = ' myinfobfb0';}
	$myinfobfb_str = '<span class="myinfobfb'.$myinfobfb_cls.'">'.$myinfobfb.'%</span>';
	$myinfobfb_str_new = '<span class="myinfobfb_new'.$myinfobfb_new_cls.'">新 '.$myinfobfb_new.'%</span>';
	//
	$zoyqstr='';$new_li='';
	foreach ($row_shalou as $F=>$V) {
		if($rows[$F] == $V)continue;
		$ismodclas=($rows[$F] != $V)?' class="ismod"':' class="nomod"';
		$T = $FT[$F]['t'];
		$S = $FT[$F]['s'];
		if(empty($V) || $F=='photo_s' || $F=='mate_areaid' || $F=='mate_areaid2' ||  $F=='areaid'||  $F=='area2id' ||  $F=='mate_age1' ||  $F=='mate_heigh1' ||  $F=='mate_weigh1')continue;
		if(strstr($F,'mate_')){
			$F2 = str_replace("mate_","",$F);
		}else{
			$F2 = $F;
		}
		$DATAnew_str = '';
		switch ($S) {//1:文本,2:单选,3:复选,4:区间,5:特殊
			default://1,4,5
				switch ($F) {
					case 'heigh':
						$DATAnew_str = udata('heigh',$V);
					break;
					case 'weigh':
						$DATAnew_str = udata('weigh',$V);
					break;
					case 'tag':
						$DATAnew_str = udata('tag'.$row_shalou['sex'],$V);
					break;
					case 'mate_age2':
						$DATAnew_str = $row_shalou['mate_age1'].'～'.$row_shalou['mate_age2'].'岁';;
					break;
					case 'mate_heigh2':
						$DATAnew_str = $row_shalou['mate_heigh1'].'～'.udata('heigh',$row_shalou['mate_heigh2']);
					break;
					case 'mate_weigh2':
						$DATAnew_str = $row_shalou['mate_weigh1'].'～'.udata('weigh',$row_shalou['mate_weigh2']);
					break;
					case 'nickname':
						$DATAnew_str = uicon($sex_new.$grade).trimhtml(dataIO($V,'wx'),'keep_rn');
					break;
					default:
						$DATAnew_str = trimhtml(dataIO($V,'wx'),'keep_rn');
					break;
				}
			break;
			case 2:
				$DATAnew_str = udata($F2,$V);
			break;
			case 3:
				$DATAnew_str = udata($F2,$V);
			break;
		}
		if(strstr($F,'mate_')){
			//择偶要求
			$zoyqstr.='<span>'.$T.'：'.$DATAnew_str.'</span>';
		}elseif($F=='weixin_pic' && !empty($DATAnew_str)){
			$new_li .= '<span class="weixin_pic"><a href="javascript:ZeaiM.piczoom(\''.UP.$DATAnew_str.'\');"><img src="'.UP.$DATAnew_str.'"></a><br>微信二维码</span>';
		}else{
			$new_li .=  '<span>'.$T.'：'.$DATAnew_str.'</span>';
		}
	}
	$O   = '<li>';
	$O  .= '	<div class="uidbox">';
	$O  .= '		<div class="uid">'.uicon($sex.$grade).'<span class="textmiddle">'.$id.'（'.$nickname.'）</span>'.$rz_str.'<span class="ut">'.$ut.'</span></div>';
	$O  .= '		<div class="clear"></div>';
	$O  .= '	</div>';
	$O  .= '	<div class="uinfo">';
	$O  .= '		<a href="'.mHref('crm_u',$uid).'"><img class="photo_s" src="'.$photo_s_url.'"></a>'.$myinfobfb_str.'
					<i class="ico jt">&#xe62d;</i>
					<a href="javascript:ZeaiM.piczoom(\''.smb($photo_s_url_new,'b').'\');"><img class="photo_s_new" src="'.$photo_s_url_new.'"></a>'.$myinfobfb_str_new;
	if(!empty($photo_s_new)){
		$O  .= '	<a href="javascript:pdel('.$uid.');" class="pdel"><i class="ico">&#xe62c;</i> 删</a>';
		$O  .= '	<a href="javascript:pcut(\''.smb($photo_s_new,'b').'\','.$uid.');" class="pcut"><i class="ico">&#xe6a5;</i> 裁</a>';
	}
	$O  .= '		<a href="m_u_mod.php?submitok=mod&uid='.$uid.'" class="btn size2 BAI mod">修改</a>';
	$O  .= '		<a href="javascript:dataflag(\''.$uid.'\',1);" class="btn size2 yes">通过</a>';
	$O  .= '		<a href="javascript:dataflag(\''.$uid.'\',2);" class="btn size2 no">驳回</a>';
	$O  .= '	</div>';
	if(!empty($new_li))$O  .= '<div class="datali"><b>新资料</b>：'.$new_li.'</div>';
	if(!empty($zoyqstr))$O .= '<div class="datali mate"><b>新要求</b>：'.$zoyqstr.'</div>';
	$O  .= '</li>';
	return $O;
}
?>
<div id="backtop"><a id="btmTopBtn"><i class="ico">&#xe60c;</i>顶部</a></div>

<form id="GYLform" style="padding:10px 20px;display:none">
<input type="checkbox" id="photo_sflag1" name="photo_sflag1" class="checkskin checkboxall" value="1" checked><label for="photo_sflag1" class="checkskin-label"><i></i><b class="W80 S14 Cf00">覆盖原头像</b></label><br><br><div class="C999 S12">如果想保留原头像只审核资料，这里可以不打勾，否则新头像将覆盖原头像</div><br>
<button type="button" class="btn size3 W100_ zeaibg" id="shsave">通过审核</button>
</form>
<script>
document.body.onscroll = function(){backtopFn();}
function uflag(uid){
	var id = o('u'+uid);
	zeai.ajax('m_u'+zeai.ajxext+'submitok=modflag&uid='+uid,function(e){var rs=zeai.jsoneval(e);
		if (rs.flag == 1){id.class('uflag uflag1');id.html(rs.title);}else if(rs.flag == -1){id.class('uflag uflag_1');id.html(rs.title);}else{zeai.msg(rs.msg);}
	});
}
function dataflag(uid,kind){
	if(kind==1){
		ZeaiM.div2({obj:GYLform,title:'审核UID:'+uid,w:30,h:20});
		shsave.onclick=function(){
			var pf=(photo_sflag1.checked)?1:0;
			zeai.ajax('m_u_jb_list'+zeai.ajxext+'submitok=dataflag'+kind+'&uid='+uid+'&photo_sflag1='+pf,function(e){var rs=zeai.jsoneval(e);
				zeai.msg(rs.msg);
				if (rs.flag == 1){setTimeout(function(){location.reload(true);},1000);}
			});
		}
	}else{
		zeai.ajax('m_u_jb_list'+zeai.ajxext+'submitok=dataflag'+kind+'&uid='+uid,function(e){var rs=zeai.jsoneval(e);
			zeai.msg(rs.msg);
			if (rs.flag == 1){setTimeout(function(){location.reload(true);},1000);}
		});
	}
}
function pcut(dbname,uid){
	ZeaiM.div_left({obj:cut_box,w:zeai.bodyW()});
	if(!zeai.empty(o('photo_s')))photo_s.value=dbname;
	cut_tmppic.src=up2+dbname;
	www_a9a_cn_cut = new ZEAICUT(uid);
	www_a9a_cn_cut.wake();
	www_a9a_cn_cut.init();
}
function pdel(uid){
	zeai.confirm('确定要删除【uid:'+uid+'】新头像么？',function(){
		zeai.ajax('m_u_jb_list'+zeai.ajxext+'submitok=pdel_shalou&uid='+uid,function(e){var rs=zeai.jsoneval(e);
			zeai.msg(rs.msg);
			if (rs.flag == 1){setTimeout(function(){location.reload(true);},1000);}
		});
	});
}
</script>
<?php require_once ZEAI.'res/m/cut.html';?>
<?php require_once 'm_btm.php';?>